﻿<%@ Import Namespace="Model.WWW_WWW.translate" %>
<%@ Control Language="C#" AutoEventWireup="true" Inherits="Web.Control.WWW.translate.translate" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
				<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1>Translate & vote</h1>
								<div class="copyright"><a href="/translate">Translate</a> > <%= LangName %></div>
							</div>
							<div class="translate_note">
								<h4>General Translation Process</h4>
								<p>1. Register as a member of the italki Translation Team after signing in to your italki.com account.<br />2. Select the language you want to translate. You will see one item to translate each time. If others have submitted their translations, you can vote for the best translation or submit your own.<br />3. After submitting your translation, click on <em class="pink12">[Next Item]</em> if you want to translate another word or phrase.</p>
								<h4>Guidelines for Translations</h4>
								<p>1. Format<br />Please follow the same format that is used in the English version, including punctuation and capitalization.</p>
								<p>2. Variables (Variables can be numbers, names, discussions or other contents of italki)<br />Variables within the brackets are in red, like <span class="red12">{0} {1}</span>. Please do not translate the variables.<br /><br />Example: <br />English: <span class="red12">{0} {1}</span> left to answer<br />Italian: <span class="red12">{0} {1}</span> ancora da rispondere<br /><br /></p>
								<p>3. Links<br />Terms that will become HTML links on italki webpages are surrounded by brackets and colored red, like: this is <span class="red12">&lt;a href="http://www.italki.com/"&gt;</span>italki<span class="red12">&lt;/a&gt;</span>.<br />You should translate the words colored black, because they will actually be displayed. Please do not translate HTML links that appear in red.<br /><br />Examples:<br />English: this is <span class="red12">&lt;a href="http://www.italki.com/"&gt;</span>italki<span class="red12">&lt;/a&gt;</span>.<br />Chinese(Simplified): 这是<span class="red12">&lt;a href="http://www.italki.com/"&gt;</span>爱拓奇<span class="red12">&lt;/a&gt;</span>.<br /><br /></p>
								<p>4. Formal and informal Translations<br />Please submit the formal expression of the item. Avoid slang and impolite expressions.</p>
							</div>
						</div>
					</div>
				</div>
				<% if (SingleTranslate != null) {%>
				<div class="Center9001n">
					<div class="center9001right">
						<div class="Center9001Content">
							<div class="translate_area">
								<div>
									<div class="translate_site">
										<h3>English entry or phrase:</h3>
										<a href="translate"></a>
										<div class="translate_original"><input type="text" name="#text_anchor" style="display:none;" /><%= HighLightCode(SingleTranslate.ItemText) %></h3></div>
										<% if (!HasGoodFlag) {%>
										<div class="translate_join">
											Vote for the best or submit your own.
											<% if (CurrentMember == null) {%>
											Not a member of the Translation Team? <a href="/translate/join.htm">Join now</a><%}%>
										</div>
										<%}%>
										<p align="right"><% if (CurrentMember != null && CurrentMember.IsAdmin) {%>
										<a href="/translate/Edit.htm?item=<%= SingleTranslate.ItemNo %>">Edit</a>
										<a href="javascript:;" onclick="javascript:if(confirm('are you sure delete this item?')) window.location.href='/translate/translate.htm?lang=<%= Request.QueryString["lang"] %>&delete=<%= SingleTranslate.ItemNo %>';">delete</a>
										<%}%>
										</p>
									</div>
									<div class="translate_select">
										<!--loop start-->
										<% foreach (TranslateModel tm in SingleTranslateModels) {%>
										<table width="625" border="0" cellspacing="0" cellpadding="0" class="translate_selectList"
											<% if(tm.GoodFlag){%>style="background-color:#fef8fc" <%}%>>
											<tr>
												<td width="500" <% if(tm.GoodFlag){%> style="font-size: 14px; font-weight: bold" <%}%>><% if (tm.GoodFlag) {%><img src="/Images/icon_trans_good.gif" align="absmiddle" alt="Best" title="The Best Version" /><%}%> <%= HighLightCode(tm.ItemText) %></td>
												<td width="125" align="center" id="td_feedback_<%= tm.ContentID %>">
												<%if (CurrentMember != null && CurrentMember.IsAdmin) { %><div class="floatr" style="margin-left: 5px"><a href="?lang=<%= Request.QueryString["lang"] %>&good=<%= tm.ContentID%>&id=<%= tm.ItemNo %>" title="Best"><img src="/Images/icon_trans_votegood.gif" align="absmiddle" border="0" /></a></div>
												<%} %>
												<%if (tm.MemberNo != HttpContext.Current.User.Identity.Name && !HasGoodFlag) {%>
												<div class="floatr" style="margin-left: 5px" id="div_subfeedback_<%=tm.ContentID%>"><a href="javascript:;" onclick="javascript:$('div_subfeedback_<%=tm.ContentID%>').style.visibility='hidden';AddFeedback(<%=tm.ContentID%>,<%=tm.Feedback - 1%>,'<%=HttpContext.Current.User.Identity.Name%>');" title="Bad"><img src="/Images/icon_trans_del.gif" onclick="" alt="" border="0" /></a></div>
												<div class="floatr" style="margin-left: 5px" id="div_addfeedback_<%=tm.ContentID%>"><a href="javascript:;" onclick="javascript:$('div_addfeedback_<%=tm.ContentID%>').style.visibility='hidden';AddFeedback(<%=tm.ContentID%>,<%=tm.Feedback + 1%>,'<%=HttpContext.Current.User.Identity.Name%>');" title="Good"><img src="/Images/icon_trans_add.gif" onclick="" alt="" border="0" /></a></div>
												<%}%>
												<div class="trans_rate floatr" style="margin-left: 5px" id="div_feedback_<%= tm.ContentID %>">vote: <%= tm.Feedback %></div>
												<div class="clear"></div>
												</td>
											</tr>
										</table>
										<%} %>
									</div>
									<div id="divPage">
										<%=CreatePageNav(ContentCount, PageSize, PageIndex, "",
										string.Format("<span class='page_none grey10'><a href='{0}/translate/translate.htm?lang={1}&id={2}&p=$I$'>{3}</a></span>&nbsp;", WWWHost,Request.QueryString["lang"], SingleTranslate.ItemNo, HttpUtility.UrlEncode(GetText("Prev"))),
										"",string.Format("<span class='page_none grey10'><a href='{0}/translate/translate.htm?lang={1}&id={2}&p=$I$'>{3}</a></span>&nbsp;",WWWHost, Request.QueryString["lang"], SingleTranslate.ItemNo,  HttpUtility.UrlEncode(GetText("Next"))),
										string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
										string.Format("<span class='page_none grey10'><a href='{0}/translate/translate.htm?lang={1}&id={2}&p=$I$'>$I$</a></span>&nbsp;",WWWHost,Request.QueryString["lang"], SingleTranslate.ItemNo)
									)%>
									</div>
									<% if (CurrentMember != null && !HasGoodFlag) {%>
									<p class="black18">
									Translate to <%=LangName%>:</p>
									<div>
										<p><textarea name="texta_content" cols="5" style="width: 625px; height: 80px"></textarea><input type="hidden" name="hide_itemno" value="<%=SingleTranslate.ItemNo%>" /><br /><span id="span_inputerror" style="color: Red;"></span></p>
										<p><input name="" type="submit" value="Submit your own translation" class="button"></p>
									</div>
									<%} %>
								</div>
							</div>
						</div>
					</div>
					<div class="center9001left">
						<div style="margin: 20px 20px 0px 0px; text-align: right"><a href="http://www.italki.com/groups/1067">Discuss Group</a>&nbsp;&nbsp;&nbsp;<a href="/translate/translate_list.htm?lang=<%= Request.QueryString["lang"] %>">All Items</a>&nbsp;&nbsp;&nbsp;<a href="/translate/translate.htm?lang=<%=Request.QueryString["lang"]%>&rand=<%= new Random().NextDouble() %>#text_anchor">Next Item</a></div>
					</div>
					<div class="clear"></div>
				</div>
				<%} else {%>
				No Item!
				<%}%>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>